package exception;


import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;

public class ThrowsDemo {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis = new BufferedInputStream(new FileInputStream("a.txt"));
        System.out.println(bis.read());
        System.out.println(bis.read());
        System.out.println(bis.read());
    }
}
